FILE_NAME=${1}

if [ -z "$FILE_NAME" ]; then
    echo "plese input ota file name"
    exit
fi

echo ${FILE_NAME} 


python ota_image_tool.py show ${FILE_NAME} | tee ${FILE_NAME}_info.txt
echo "  [10]Checksum" | tee -a ${FILE_NAME}_info.txt
openssl sha256 --binary $FILE_NAME | base64 | tee -a ${FILE_NAME}_info.txt
echo "url: https://gitee.com/iMing999/test_open/raw/master/${FILE_NAME}" | tee -a ${FILE_NAME}_info.txt

